package com.lkbaby.listener;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.ExecutionListener;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component("applyTaskListener")
public class ApplyTaskListener implements ExecutionListener {

	@Override
	public void notify(DelegateExecution delegateExecution) {
		HashMap<String, Object> map = new HashMap<>();
		System.out.println("applyTaskListener is running");
		delegateExecution.setVariables(map);
	}
}
